import request from '@/utils/request'

// 查询事项申请列表
export function listOaMatters(query) {
  return request({
    url: '/matters/oaMatters/list',
    method: 'get',
    params: query
  })
}

// 查询事项申请详细
export function getOaMatters(id) {
  return request({
    url: '/matters/oaMatters/' + id,
    method: 'get'
  })
}

// 保存事项申请
export function saveOaMatters(data) {
  return request({
    url: '/matters/oaMatters/save',
    method: 'post',
    data: data
  })
}

// 删除事项申请
export function delOaMatters(id) {
  return request({
    url: '/matters/oaMatters/' + id,
    method: 'delete'
  })
}

// 导出事项申请
export function exportOaMatters(query) {
  return request({
    url: '/matters/oaMatters/export',
    method: 'get',
    params: query
  })
}
